package com.tinyideatech.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tinyideatech.system.entity.CarRmonOrder;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * @author zhangy-5
 * @date 2019-12-15
 */
@Repository
public interface CarRmonOrderMapper extends BaseMapper<CarRmonOrder> {

    @Select("SELECT MIN(update_time) from car_rmon_order WHERE device_id=#{deviceId}")
    Date selectByTime(String deviceId);
}